package com.webber.demo.common.utils;

import java.sql.Timestamp;
import java.util.List;

/**
 * 
 * <p>Title: UploadResDto.java</p>
 * <p>Description:上传文件响应</p>
 * <p>Copyright: Copyright (c) 2017</p>
 * <p>Company: 博达软件</p>
 * <p>ProjectName: partyconstruction</p>
 * @Package com.webber.partyConstruction.modules.download.controller.dto 
 * @author JobsZhang
 * @date 2017年10月13日 下午3:47:45
 * @version partyconstruction 1.0
 */
public class UploadRes {
	/**
	 * 是否成功
	 */
	private boolean success;
	/**
	 * 状态码
	 */
	private String code;
	/**
	 * 文件大小
	 */
	private Long fileSize=Long.valueOf(0);
	/**
	 * 文件数量
	 */
	private int fileNum;
	/**
	 * 时长
	 */
	private long mediaTime;
	/**
	 * 上传路径
	 */
	private String uploadpath;
	/**
	 * 文件类型
	 */
	private String fileType;
	/**
	 * 文件名称
	 */
	private String fielName;
	/**
	 * 多文件上传的话，返回路径集合
	 */
	private List<String> uploadpathList;
	
	/**
	 * 创建时间
	 */
	private Timestamp createTime;

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Long getFileSize() {
		return fileSize;
	}

	public void setFileSize(Long fileSize) {
		this.fileSize = fileSize;
	}

	public int getFileNum() {
		return fileNum;
	}

	public void setFileNum(int fileNum) {
		this.fileNum = fileNum;
	}

	public long getMediaTime() {
		return mediaTime;
	}

	public void setMediaTime(long mediaTime) {
		this.mediaTime = mediaTime;
	}

	public String getUploadpath() {
		return uploadpath;
	}

	public void setUploadpath(String uploadpath) {
		this.uploadpath = uploadpath;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getFielName() {
		return fielName;
	}

	public void setFielName(String fielName) {
		this.fielName = fielName;
	}

	public List<String> getUploadpathList() {
		return uploadpathList;
	}

	public void setUploadpathList(List<String> uploadpathList) {
		this.uploadpathList = uploadpathList;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "UploadRes [success=" + success + ", code=" + code
				+ ", fileSize=" + fileSize + ", fileNum=" + fileNum
				+ ", mediaTime=" + mediaTime + ", uploadpath=" + uploadpath
				+ ", fileType=" + fileType + ", fielName=" + fielName
				+ ", uploadpathList=" + uploadpathList + ", createTime="
				+ createTime + "]";
	}

	
	
	
}
